import {INCREMENT,DECREMENT} from '../constant'
export const createIncrementAction = data => ({type: INCREMENT,data})
export const createDecrementAction = data => ({type: DECREMENT,data}) 
export const createIncrementAsyncAction =  (data,timeout) => dispathch => setTimeout(() => dispathch(createIncrementAction(data)),timeout)